package org.budo.graph.view.spring.boot;

import org.budo.graph.view.BudoGraphViewFilter;
import org.budo.support.lang.util.ListUtil;
import org.springframework.boot.web.servlet.FilterRegistrationBean;

/**
 * @author limingwei
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
public class BudoGraphViewFilterRegistrationBean extends FilterRegistrationBean {
    public BudoGraphViewFilterRegistrationBean() {
        this.setName("BudoGraphViewFilter");
        this.setFilter(new BudoGraphViewFilter());
        this.setUrlPatterns(ListUtil.toList("/budo-graph/*"));
    }
}